<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增重点监控限额')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-paeaParaAuditAmt-add">
            <input name="auCode" type="hidden" id="auCode"/>
            <div class="form-group">    
                <label class="col-sm-3 control-label">监控类型：</label>
                <div class="col-sm-8">
                   <!-- <input name="auCode" class="form-control" type="text">-->
                    <select id="paeaAuType" class="form-control select2-multiple" multiple>
                        <option th:each="paeaAuType:${paeaAuTypes}" th:value="${paeaAuType.code}" th:text="${paeaAuType.code+paeaAuType.name}" ></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <input name="txnAmt" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额2：</label>
                <div class="col-sm-8">
                    <input name="txnAmt2" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额3：</label>
                <div class="col-sm-8">
                    <input name="txnAmt3" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">金额4：</label>
                <div class="col-sm-8">
                    <input name="txnAmt4" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">类型：</label>
                <div class="col-sm-8">
                    <input name="ctrlType" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "para/paeaParaAuditAmt"
        $("#form-paeaParaAuditAmt-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            $("#auCode").val($.form.selectSelects("paeaAuType"));
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-paeaParaAuditAmt-add').serialize());
            }
        }

        $(function() {
            $('#paeaAuType').select2({
                placeholder: "请选择",
                allowClear: true
            });
        })
    </script>
</body>
</html>